<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="canonical" href="https://jamesfengcao.gitlab.io/uweb/en/input/" />
    
    <link rel="stylesheet" href="../style.css#" type="text/css" />
    <title>Phrases and input method</title>
    <script>
      function findLang(){
        let href = location.href;
        for(let i=href.length-1;i>0;i--){
          if('/'==href.charAt(i) && '/'==href.charAt(i-3))
            return i;
        }
        return 0;
      }
      function nav2(page){
        let i = findLang();
        location.href = location.href.substring(0,i+1)+page;
      }
      function nav2Lang(lang){
        let i = findLang();
        let href = location.href;
        location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
      }
    </script>
  </head>
  <body>
    <header class='header'>
      <a class="logo" href="javascript:void(0)" onclick="return nav2('index.html#')">Home</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html#')">Tags</a>
      
        
          <a class="logo" href="javascript:void(0)" onclick="return nav2Lang('zh')">简体中文</a>
        
      
      <nav>
      </nav>
    </header>
    <br />
    
<div class="container">
  <h1 class="title">Phrases and input method
    <br>
    <span class="subtitle"></span>
  </h1>
  <ul class="tags">
    
  </ul>
  <h4 id="defaultinput">&quot;default.input&quot;</h4>
<p>Click the following links to install menus popped by long pressing the share button (with arrow-out-of-square as icon) on the bottom toolbar:<br>
<a href="i:0gdefault.input::@AddrBar%0A">Address Bar</a><br>
<a href="i:0gdefault.input::%20\n%0A">New line</a><br>
<a href="i:0gdefault.input::@^Z@%1A%0A">CTRL-Z: undo</a><br>
<a href="i:0gdefault.input::@^Y@%19%0A">CTRL-Y: redo</a></p>
<p>Long pressing the share button in <a href="../index.html#">uweb browser</a> will popup menus defined in file &quot;default.input&quot;, each line of which defines common phrase for user inputs. If the phrase begins with &quot;@xxxx@&quot;, then &quot;xxxx&quot; part is the alias for the rest part of the string. Alias could be used for non-printable phrases.</p>
<h4 id="long-text-can-be-kept-as-txt-file">Long text can be kept as txt file</h4>
<p>Click the following links to install menus displayed by long pressing the <a href="../links/index.html#">bookmark button</a> (with star as icon):<br>
<a href="i:0gdefault.link::Input::cinput%0A">Select utf8 text file as keyboard input</a></p>
<h4 id="address-bar">Address bar</h4>
<h5 id="address-bar-autocompletion-as-input-method-when-starting-with-space">Address bar autocompletion as input method when starting with space</h5>
<p>&quot;default.autoc&quot; or other .autoc files when <a href="../tips/index.html#">choosen</a> are loaded for address bar autocompletion. If the address bar text starts with space, the selected text is treated as user input for focused element in the visible tab.</p>
<p>Click the following links to append AI prompts:<br>
<a href="i:0gdefault.autoc:: \nFetch the data from all above URLs, %0A">Fetch the data from above URLs<a></p>
<p>More AI prompts, you could put them in the file &quot;default.autoc&quot; or other .autoc files:</p>
<ul>
<li><a href="https://word.studio/prompts/">word.studio</a></li>
</ul>
<h5 id="address-bar-as-part-of-query">Address bar as part of query</h5>
<p>When the input in main home screen starts with &quot;space+newline&quot;, the effective query is addressbar+input.</p>
<h5 id="address-bar-as-ime">Address bar as IME</h5>
<p>Action mode menu item &quot;⌨️&quot; for address bar selection makes the text user input for focused element in the visible tab.</p>
<p>Text processing commands or links can be installed as menus to process address bar text, thus makes address bar powerful IME.</p>

</div>
<p>Last Modified: 13 November 2025<br>
update search engines<br>
<pre></pre>
</p>

<script id='jsgiscus'
  src='https://giscus.app/client.js'
  data-repo="torappinfo/uweb"
  data-repo-id="MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
  data-category="Announcements"
  data-category-id="DIC_kwDOEgNLGc4CQjsh"
  data-mapping="title"
  data-strict="0"
  data-reactions-enabled="1"
  data-emit-metadata="0"
  data-input-position="top"
  data-theme="light"
  data-lang="en"
  data-loading="lazy"
  crossorigin="anonymous" async>
</script>

    <footer class="site-footer">
      <div class="container">
        &copy; 2018-2025 Richard H. Cao
      </div>
    </footer>
    <!-- This document is licensed under the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is available at <https://www.gnu.org/licenses/>. -->


  </body>
</html>
